import { Workbook, WorkbookInstance } from "@fortune-sheet/react";
import styles from "./index.module.less";
import "@fortune-sheet/react/dist/index.css"
import { LegacyRef, forwardRef } from "react";
const ReactExcel = (props:any,ref:LegacyRef<WorkbookInstance>) => {
  const {data,onChange} = props
  return <div className={styles.excelBox}>
    <Workbook onChange={onChange} ref={ref} data={data} />
  </div>
};
export default forwardRef(ReactExcel);